import request from '@/utils/request'

// 查询商品兑换记录列表
export function listGoodsExchange(query) {
  return request({
    url: '/system/goodsExchange/list',
    method: 'get',
    params: query
  })
}

// 查询商品兑换记录详细
export function getGoodsExchange(id) {
  return request({
    url: '/system/goodsExchange/' + id,
    method: 'get'
  })
}

// 新增商品兑换记录
export function addGoodsExchange(data) {
  return request({
    url: '/system/goodsExchange',
    method: 'post',
    data: data
  })
}

// 修改商品兑换记录
export function updateGoodsExchange(data) {
  return request({
    url: '/system/goodsExchange',
    method: 'put',
    data: data
  })
}

// 删除商品兑换记录
export function delGoodsExchange(id) {
  return request({
    url: '/system/goodsExchange/' + id,
    method: 'delete'
  })
}

// 导出商品兑换记录
export function exportGoodsExchange(query) {
  return request({
    url: '/system/goodsExchange/export',
    method: 'get',
    params: query
  })
}